package cn.oms.esb.api.dto.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 外部邮件类型枚举
 */
@Getter
@AllArgsConstructor
public class EmailTemplateEnum {

    public enum EmailTemplateType {

        // 普通邮件
        GENERAL("0","GENERAL","普通邮件"),
        // 邮箱验证码
        VERIFICATION("1","VERIFICATION","邮箱验证码"),
        // 系统邮件
        SYS("2","SYSTEM","系统邮件");

        private String code;
        private String name;
        private String nameCN;

        EmailTemplateType(String code, String name, String nameCN) {
            this.code = code;
            this.name = name;
            this.nameCN = nameCN;
        }

        public String getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

        public String getNameCN() {
            return nameCN;
        }
    }

}
